<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<%
		//设置页面的格式为utf-8,防止乱码
		request.setCharacterEncoding("utf-8");
		//获取传递过来的username,用request.getParameter
		String name = request.getParameter("username");
		//获取传递过来的start,因为name为start有很多个值,因此使用request.getParameterValues
		String stars[] = request.getParameterValues("start");
		String s = "";
		//遍历stars数组
		for(int i = 0; i<stars.length; i++){
			s+=stars[i]+"&nbsp;&nbsp";
		}
		
		%>
		你的名字是<%=name %><br>
		你喜欢的歌星有<%=s %>
</body>
</html>